home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Sample Code / Sample Code Update 01⁄96 / MenuScripter 3.1 / Sources / MSScript.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-20  |  753 b   |  37 lines  |  [TEXT/MPS ]

  1. /*
  2.     MSScript.h
  3.     
  4.     Version 3.1
  5.     
  6.     Copyright © 1995 Apple Computer, Inc., all rights reserved.
  7.     
  8.     MenuScripter by Nigel Humphreys and Jon Lansdell
  9.     AppleEvent to script extensions by Greg Sutton
  10. */
  11.  
  12. #ifndef __MSSCRIPT__
  13. #define __MSSCRIPT__
  14.  
  15. #include <Types.h>
  16.  
  17. #include "MSGlobals.h"
  18.  
  19. pascal OSErr InitEditorScripting(void);
  20.  
  21. pascal OSErr SetOSAActiveProcedure(void);
  22.  
  23. pascal OSErr CloseEditorScripting(void);
  24.  
  25. pascal OSErr CompileDocument(DPtr theDoc);
  26.  
  27. pascal OSErr ExecuteDocument(DPtr theDoc);
  28.  
  29. pascal OSErr ScriptForMenuExists(short theMenu, short theItem, Boolean *exists);
  30.  
  31. pascal OSErr ExecuteScriptForMenu(short theMenu, short theItem);
  32.  
  33. pascal OSErr EditMenuScript(short theMenu, short theItem);
  34.  
  35. pascal short GetScriptActiveItem(void);
  36.  
  37. #endif